namespace Beaker.OpenCube.Game
{
	/// <summary>
	/// The dimension
	/// </summary>
	public enum Dimension
	{
		/// <summary>
		/// The Nether (a.k.a. Nexus, Hell and The Slip)
		/// </summary>
		Nether = -1,

		/// <summary>
		/// The overworld (the default world you start in)
		/// </summary>
		Overworld = 0,

		/// <summary>
		/// The end
		/// </summary>
		TheEnd = 1,
	}

	public static class DimensionExtensions
	{
		/// <summary>
		/// Convert the dimension to a folder name where the dimension resides in.
		/// </summary>
		/// <param name="dimension">The dimension to get the folder name for.</param>
		/// <returns>The name of the folder for the dimension.</returns>
		public static string ToFolderName( this Dimension dimension )
		{
			if( dimension == Dimension.Overworld )
				return "region";

			return "DIM" + dimension.ToString();
		}
	}
}